package com.example.rabbitmq.receiver;

import com.example.rabbitmq.common.bean.UserEntity;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class Receiver2 {

    @RabbitHandler
    @RabbitListener(queues = "storeScore",containerFactory="rabbitListenerContainerFactory")
    public void process(UserEntity userEntity){
        System.err.println(userEntity);
    }
}
